package com.vivo.security.jni;

import android.content.Context;
import android.util.Log;

import java.io.FileDescriptor;

public class SecurityCryptor {
    static {
        try {
            System.loadLibrary("vivosgmain");
        } catch(Exception e) {
            Log.i("SecurityCryptor", "load vivosgmain failed.");
        }
    }

    public static native byte[] nativeBase64Decrypt(byte[] arg0);

    public static native byte[] nativeBase64Encrypt(byte[] arg0);

    public static native int nativeSecurityInit(Context arg0, FileDescriptor arg1, long arg2, long arg3) ;

    public static native long nativeWaveStringNet(String arg0) ;
}
